package com.yupi.springbootinit.esdao;

import com.yupi.springbootinit.model.dto.user.UserEsDTO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * 用户 ES 操作
 */
public interface UserEsDao extends ElasticsearchRepository<UserEsDTO, Long> {

    List<UserEsDTO> findByUserName(String userName);
}
